package com.personnalManagerSystem.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author liqing
 * @Date: 2022/3/22 20:36
 * @Description  该控制器用于页面之间的跳转
 */
@Controller
@RequestMapping("/view")
public class ViewController {
    //到达login页面
    @RequestMapping("/login")
    public String login(){
        return "login";
    }
    //去往login界面
    @RequestMapping("/goLogin")
    public String goLogin(){
        return "login";
    }
    //去往主页面
    @RequestMapping("/index")
    public String goIndex(){
        return "index";
    }
    //去往主页面
    @RequestMapping("/main")
    public String goMain(){
        return "main";
    }
    //去往未认证即没有权限的页面
    @RequestMapping("/unauthorized")
    public String goUnauthorized(){
        return "unauthorized";
    }


}
